package com.jotta.client.file;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.jotta.client.ImageSwiper;
import com.jotta.client.communicate.Configuration;
import com.jotta.client.data.FileInfo;

public class BrowsePictureFolder extends FileManipulation {

	public BrowsePictureFolder(Context context, FileInfo fileInfo,
			String localFilePath) {
		super(context, fileInfo, localFilePath);
	}

	public void doAction() {
		super.doAction();

		Intent intent = new Intent(context, ImageSwiper.class);

        Bundle b = new Bundle();
        b.putString(Configuration.SWIPE_PATH, fileInfo.getPathOfParentFolder());
		b.putString(Configuration.FILE_NAME, fileInfo.getTitle());

		intent.putExtras(b);
		context.startActivity(intent);
	}
}
